# -*- python -*-

# HocusPokus Config File


# General Options
name = "Living Room"
css_style_file = "static/hocuspocus.css"


# Plugin: Alarm
alarm_ring_media = "/music/0_Playlist/wakeup.m3u"
alarm_current_time_format = "%A %H:%M"
alarm_alarm_time_format = "%A %H:%M"


# Plugin: Media
media_contents = [
    "Movie-Classic:GlobListAndSort:/video/Classic/*/",

    "Movie-Todo:GlobListAndSort:/video/Todo/*.{avi,mov,wmv}:/video/Todo/*/",

    "Movie-Drive:GetVerbatim:DVD Drive:/dev/cdrom",

    "Music-Playlists:GlobListAndSort:/music/0_Playlist/*.[Mm]3[Uu]",

    "Music-Radio:GetMediaFromFile:/music/0_Radio/list.txt",

    # 3600* 24 * 90 = 7776000: last 90 days in secs
    "Music-Recent:GetMostRecent:7776000:/music/[A-Z]*/*/",
    ]


# Plugin: Media
webcam_devices = [
    "camera 0:/dev/video0",
#    "camera 1:/dev/video1",
]

# Plugin: System
system_commands = [
    "cpuinfo:cat /proc/cpuinfo",
    "meminfo:cat /proc/meminfo",
    "vmstat:cat /proc/vmstat",

    "diskstats:cat /proc/diskstats",

    "dhcp-leases:cat /var/lib/misc/dnsmasq.leases",

    # Provided by Ubuntu package: lm-sensors
    "sensors:sensors",
    # Provided by Ubuntu package: sysstat
    "iostats:iostat -k",

    "mount:mount",
    "df: df -m",
    "partitions:cat /proc/partitions",
    # Provided by Ubuntu package: util-linux
    "block-devices:blkid -o device",
    "block-devices-crypto:blkid -o device -t TYPE=crypto_LUKS",

    # Provided by Ubuntu package: usbutils
    "lsusb:lsusb",
    # Provided by Ubuntu package: pciutils
    "lspci:lspci",
    # Provided by Ubuntu package: psmisc
    "pstree:pstree -a",

    # Provided by Ubuntu package: x11-utils
    "xdpyinfo:xdpyinfo",
    # Provided by Ubuntu package: mesa-utils
    "glxinfo:glxinfo",
    # Provided by Ubuntu package: x11-utils
    "xdriinfo:xdriinfo",
    # Provided by Ubuntu package:  x11-utils
    "xvinfo:xvinfo",

    "blank-screen:xset dpms force off",

    "launch-torrent:transmission-daemon",

    "kill-torrent:killall -g transmission-daemon",

    # shut down machine
    # to make this work add
    #<user> localhost= NOPASSWD: /sbin/halt
    # to /etc/sudoers
    "halt:sudo /sbin/halt",
    ]


# Plugin: Task
task_commands = [
#    "task 10:./test_task.sh 10",
#    "task 100:./test_task.sh 100",
    "rip dvd:rip.media.sh dvd",
    ]
